package com.china.juju.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="juju_user_security_question"
    ,catalog="zutuan_prot"
)
public class JujuUserSecurityQuestion  implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    public static final String ENTITY_NAME = "com.china.juju.entity.JujuUserSecurityQuestion";
	public static final String TABLE_NAME="juju_user_security_question";

    public static final String PK_Field = "id"; 
    public static final String PK_Method = "getId";  
	
	public static final String P_id = "id"; 
	public static final String P_userId = "userId"; 
	public static final String P_securityQuestion = "securityQuestion"; 
	public static final String P_answer = "answer"; 
	public static final String P_securityQuestionname = "securityQuestionname"; 

     private String id;
     private String userId;
     private String securityQuestion;
     private String answer;
     private String securityQuestionname;

    public JujuUserSecurityQuestion() {
    }
	
    public JujuUserSecurityQuestion(String id) {
        this.id = id;
    }
    public JujuUserSecurityQuestion(String id, String userId, String securityQuestion, String answer, String securityQuestionname) {
        this.id = id;
        this.userId = userId;
        this.securityQuestion = securityQuestion;
        this.answer = answer;
        this.securityQuestionname = securityQuestionname;
    }
   
    @Id 
    @GeneratedValue( generator="paymentableGenerator")  
    @GenericGenerator(name="paymentableGenerator", strategy="uuid")  
    
    @Column(name="ID", unique=true, nullable=false, length=36)
    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="user_id", length=36)
    public String getUserId() {
        return this.userId;
    }
    
    public void setUserId(String userId) {
        this.userId = userId;
    }
    
    @Column(name="security_question", length=36)
    public String getSecurityQuestion() {
        return this.securityQuestion;
    }
    
    public void setSecurityQuestion(String securityQuestion) {
        this.securityQuestion = securityQuestion;
    }
    
    @Column(name="answer", length=256)
    public String getAnswer() {
        return this.answer;
    }
    
    public void setAnswer(String answer) {
        this.answer = answer;
    }
    
    @Column(name="security_questionname", length=256)
    public String getSecurityQuestionname() {
        return this.securityQuestionname;
    }
    
    public void setSecurityQuestionname(String securityQuestionname) {
        this.securityQuestionname = securityQuestionname;
    }



    @Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}


